// vite.config.ts
import { defineConfig } from "file:///D:/web/energy-leasing-dapp/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/web/energy-leasing-dapp/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import Components from "file:///D:/web/energy-leasing-dapp/node_modules/unplugin-vue-components/dist/vite.mjs";
import { VantResolver } from "file:///D:/web/energy-leasing-dapp/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs";
import { resolve } from "path";
var __vite_injected_original_dirname = "D:\\web\\energy-leasing-dapp";
var vite_config_default = defineConfig({
  server: {
    open: false,
    // 配置自动启动浏览器
    port: 41229,
    host: "0.0.0.0",
    proxy: {
      "/api": {
        target: "https://enerhub.me",
        // 后台接口域名
        // https://reddevil.pro
        changeOrigin: true,
        // 是否允许跨域
        secure: true
        // rewrite: (path) => path.replace(/^\/api/, '') // api标志替换为'
      }
    }
  },
  build: {
    outDir: "energy-leasing-online"
  },
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
  plugins: [
    vue(),
    Components({
      resolvers: [VantResolver()]
    })
  ],
  resolve: {
    // 设置文件./src路径为 @
    alias: [
      {
        find: "@",
        replacement: resolve(__vite_injected_original_dirname, "./src")
      }
    ]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3ZWJcXFxcZW5lcmd5LWxlYXNpbmctZGFwcFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxcd2ViXFxcXGVuZXJneS1sZWFzaW5nLWRhcHBcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21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